package com.city.justlisten.config;

import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * Created with IntelliJ IDEA.
 * User: Cheng
 * Date: 2021/2/1
 * Time: 21:05
 * Description: No Description
 */
public class SingerImgConfig implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/img/singerPic/**").addResourceLocations(
                "file:"+System.getProperty("file.separator")+"img"+System.getProperty("file.separator")
                +"singerPic"+System.getProperty("file.separator")
        );
    }
}
